package cn.com.wangluotongxin.merchants.service;

import cn.com.wangluotongxin.chat.vo.SysUserVo;
import cn.com.wangluotongxin.merchants.dto.UserDto;
import cn.com.wangluotongxin.merchants.form.UserEditForm;
import cn.com.wangluotongxin.merchants.form.UserForm;
import cn.com.wangluotongxin.merchants.model.MerchantsUser;
import cn.com.wangluotongxin.merchants.vo.UserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商户管理-用户表 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-04-26
 */
public interface IMerchantsUserService extends IService<MerchantsUser> {

    String getToken(String username, String password, String merchantsNo);

    UserVo getInfo(Integer id);

    void initAdminUser(SysUserVo sysUserVo);

    void createUser(Integer userLevel, String username, String password, String phone, String name, String idCard, String headImage);

    IPage<UserVo> getPage(UserDto dto);

    UserVo detail(Integer id);

    void add(UserForm form);

    void edit(UserEditForm form);

    void delete(Integer id);
}
